/**
 * 对应管理员端模版模块
 */

package xiangmu.schoolpaper.service.impl.system;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import xiangmu.schoolpaper.mapper.DictTemplateTypeMapper;
import xiangmu.schoolpaper.mapper.TemplateChapterMapper;
import xiangmu.schoolpaper.mapper.system.TemplateChaptersMapper;
import xiangmu.schoolpaper.pojo.entity.DictTemplateType;
import xiangmu.schoolpaper.pojo.entity.TemplateChapter;
import java.util.List;
import java.util.stream.Collectors;



@Service
public class TemplateChaptersServiceImpl {

    @Autowired
    private TemplateChapterMapper templateChapterMapper;

    private List<String> templateChaptersArray;

    @Autowired
    private TemplateChaptersMapper ChaptersMapper;


    public List<String> getAllTemplateChapters(Integer templateId) {
        // 查询所有未删除的模版章节
        List<String> list = templateChapterMapper.getTemplateChaptersTable(templateId);

        // 只要模板章节名称
        return list;

    }

}
